package ru.efimmatytsin.tweeterella.holders.impl;

import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Service;
import ru.efimmatytsin.tweeterella.entities.User;
import ru.efimmatytsin.tweeterella.holders.UserInformationModelHolder;

import java.io.Serializable;

/**
 * Created by Efim Matytsin on 22.02.15.
 */
@Service
@Scope(value="session", proxyMode= ScopedProxyMode.TARGET_CLASS)
public class UserInformationModelHolderImpl implements Serializable,UserInformationModelHolder {

    private User user;

    @Override
    public User getUser() {
        return user;
    }

    @Override
    public void setUser(User user) {
        this.user = user;
    }
}
